package org.yzhang3.data.common;

import java.util.zip.ZipException;

public interface FileCompressible {

	/**
	 * Compress <code>sourcePath</code>'s file to one <code>targetPath</code>'s file.
	 * @param sourcePath
	 * @param targetPath
	 * @throws ZipException
	 */
	void compressFile(String sourcePath, String targetPath) throws ZipException;
	
	/**
	 * Decompress <code>sourcePath</code>'s file to one <code>targetPath</code>'s file.
	 * @param sourcePath
	 * @param targetPath
	 * @throws ZipException
	 */
	void decompressFile(String sourcePath, String targetPath) throws ZipException;
	
}
